/* 个人资料页面样式 */
.profile-container {
    max-width: 900px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    background-color: var(--bg-primary);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.profile-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.change-avatar-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-email {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    gap: 30px;
}

.profile-stat {
    text-align: center;
}

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-section {
    background-color: var(--bg-primary);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.profile-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.learning-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.learning-stat-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.learning-stat-row:last-child {
    border-bottom: none;
}

.learning-stat-label {
    font-weight: 500;
}

.learning-progress h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.language-progress {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.language-progress-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-name {
    min-width: 60px;
    font-weight: 500;
}

.progress-bar-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
}

.progress-value {
    min-width: 40px;
    text-align: right;
    font-size: 14px;
    font-weight: 500;
}

.travel-history {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.travel-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 15px;
}

.travel-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.travel-icon img {
    width: 24px;
    height: 24px;
}

.travel-details {
    flex: 1;
}

.travel-details h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.travel-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
}

.travel-status.completed {
    color: var(--success);
}

.travel-status.upcoming {
    color: var(--primary-color);
}

.view-details-btn {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
}

.security-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.security-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.security-option:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.security-option-info h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.security-option-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .travel-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .view-details-btn {
        align-self: flex-end;
        margin-top: 10px;
    }
    
    .security-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}